
#ifndef IN_I2C_H
#define IN_I2C_H

#include "driverh.h"

#define I2C1_PORT           GPIOB
#define I2C1_SDA            GPIO_Pin_7
#define I2C1_SCL            GPIO_Pin_6

INT8U  I2cInit(INT16U I2cAddr, INT32U Freq);
INT16U I2cWrite(INT8U Addr, INT8U *Data, INT16U NByte);
INT16U I2cReadEx(INT8U Addr, INT8U *Ret, INT8U *Eaddr, INT8U EaddrNByte, INT16U ReadNbyte);

#endif
